package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the account_tbl database table.
 * 
 */
@Entity
@Table(name="account_tbl")
public class Account extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ACCT_CODE")
	private int acctCode;

	@Column(name="ACCT_DESC")
	private String acctDesc;

	@Column(name="ACCT_NAME")
	private String acctName;

	//bi-directional many-to-one association to AccountPrivilege
	@OneToMany(mappedBy="account")
	private List<AccountPrivilege> accountPrivileges;

	//bi-directional many-to-one association to AccountReport
	@OneToMany(mappedBy="account")
	private List<AccountReport> accountReport;

	//bi-directional many-to-one association to AccountRequirement
	@OneToMany(mappedBy="account")
	private List<AccountRequirement> accountRequirements;

	//bi-directional many-to-one association to PoSow
	@OneToMany(mappedBy="account")
	private List<PoSow> poSows;

	public Account() {
	}

	public int getAcctCode() {
		return this.acctCode;
	}

	public void setAcctCode(int acctCode) {
		this.acctCode = acctCode;
	}

	public String getAcctDesc() {
		return this.acctDesc;
	}

	public void setAcctDesc(String acctDesc) {
		this.acctDesc = acctDesc;
	}

	public String getAcctName() {
		return this.acctName;
	}

	public void setAcctName(String acctName) {
		this.acctName = acctName;
	}

	public List<AccountPrivilege> getAccountPrivileges() {
		return this.accountPrivileges;
	}

	public void setAccountPrivileges(List<AccountPrivilege> accountPrivileges) {
		this.accountPrivileges = accountPrivileges;
	}

	public List<AccountReport> getAccountReport() {
		return this.accountReport;
	}

	public void setAccountReport(List<AccountReport> accountReport) {
		this.accountReport = accountReport;
	}

	public List<AccountRequirement> getAccountRequirements() {
		return this.accountRequirements;
	}

	public void setAccountRequirements(List<AccountRequirement> accountRequirements) {
		this.accountRequirements = accountRequirements;
	}

	public List<PoSow> getPoSows() {
		return this.poSows;
	}

	public void setPoSows(List<PoSow> poSows) {
		this.poSows = poSows;
	}

}